package com.ksy.common.login;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Ksy.
 */

public class QQInfo implements Parcelable {
    public String openid;
    public String is_yellow_year_vip;
    public int ret;
    public String figureurl_qq_1;
    public String figureurl_qq_2;
    public String nickname;
    public String yellow_vip_level;
    public int is_lost;
    public String msg;
    public String city;
    public String figureurl_1;
    public String vip;
    public String level;
    public String figureurl_2;
    public String province;
    public String is_yellow_vip;
    public String gender;
    public String year;
    public String figureurl;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.openid);
        dest.writeString(this.is_yellow_year_vip);
        dest.writeInt(this.ret);
        dest.writeString(this.figureurl_qq_1);
        dest.writeString(this.figureurl_qq_2);
        dest.writeString(this.nickname);
        dest.writeString(this.yellow_vip_level);
        dest.writeInt(this.is_lost);
        dest.writeString(this.msg);
        dest.writeString(this.city);
        dest.writeString(this.figureurl_1);
        dest.writeString(this.vip);
        dest.writeString(this.level);
        dest.writeString(this.figureurl_2);
        dest.writeString(this.province);
        dest.writeString(this.is_yellow_vip);
        dest.writeString(this.gender);
        dest.writeString(this.year);
        dest.writeString(this.figureurl);
    }

    public QQInfo() {
    }

    protected QQInfo(Parcel in) {
        this.openid = in.readString();
        this.is_yellow_year_vip = in.readString();
        this.ret = in.readInt();
        this.figureurl_qq_1 = in.readString();
        this.figureurl_qq_2 = in.readString();
        this.nickname = in.readString();
        this.yellow_vip_level = in.readString();
        this.is_lost = in.readInt();
        this.msg = in.readString();
        this.city = in.readString();
        this.figureurl_1 = in.readString();
        this.vip = in.readString();
        this.level = in.readString();
        this.figureurl_2 = in.readString();
        this.province = in.readString();
        this.is_yellow_vip = in.readString();
        this.gender = in.readString();
        this.year = in.readString();
        this.figureurl = in.readString();
    }

    public static final Creator<QQInfo> CREATOR = new Creator<QQInfo>() {
        @Override
        public QQInfo createFromParcel(Parcel source) {
            return new QQInfo(source);
        }

        @Override
        public QQInfo[] newArray(int size) {
            return new QQInfo[size];
        }
    };

    @Override
    public String toString() {
        return "QQInfo{" +
                "openid='" + openid + '\'' +
                ", is_yellow_year_vip='" + is_yellow_year_vip + '\'' +
                ", ret=" + ret +
                ", figureurl_qq_1='" + figureurl_qq_1 + '\'' +
                ", figureurl_qq_2='" + figureurl_qq_2 + '\'' +
                ", nickname='" + nickname + '\'' +
                ", yellow_vip_level='" + yellow_vip_level + '\'' +
                ", is_lost=" + is_lost +
                ", msg='" + msg + '\'' +
                ", city='" + city + '\'' +
                ", figureurl_1='" + figureurl_1 + '\'' +
                ", vip='" + vip + '\'' +
                ", level='" + level + '\'' +
                ", figureurl_2='" + figureurl_2 + '\'' +
                ", province='" + province + '\'' +
                ", is_yellow_vip='" + is_yellow_vip + '\'' +
                ", gender='" + gender + '\'' +
                ", year='" + year + '\'' +
                ", figureurl='" + figureurl + '\'' +
                '}';
    }
}
